/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tpdisenio2009.services;

import java.util.List;
import tpdisenio2009.filters.AFAPlayerFilter;
import tpdisenio2009.model.beans.SoccerPlayer;
import tpdisenio2009.model.dao.SoccerPlayerDAO;

/**
 *
 * @author DeuterioX
 */
public class SoccerPlayerService {
    
    private final SoccerPlayerDAO soccerPlayerDAO;

    public SoccerPlayerService() {
        soccerPlayerDAO = new SoccerPlayerDAO();
    }

    public List<SoccerPlayer> getAllSoccerPlayers() {
        return soccerPlayerDAO.getAll();
    }

    public List<SoccerPlayer> getByFilter( AFAPlayerFilter filter ) {
        return soccerPlayerDAO.getByFilter( filter );
    }

    public List<SoccerPlayer> getSoccerPlayersByPosition( String position ) {
        return soccerPlayerDAO.getByPosition( position );
    }
}
